package com.itheima.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.IPage;
import com.github.pagehelper.PageInfo;
import com.itheima.admin.dto.UserDto;
import com.itheima.admin.pojo.User;
import com.itheima.admin.vo.RoleUserVo;
import org.apache.ibatis.annotations.*;

import java.util.Date;
import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    @Select("select * from ss_user where user_id = #{id}")
    User selectById(String id);

    List<User> selectByPage(@Param("state") String status, @Param("username") String username);

    int addUserToRole(@Param("userId")String userId,@Param("roleIds") List<String> roleIds);

}
